<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsAuthorTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('author', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键id');
			$table->bigInteger('uid')->comment('接受专访的用户id');
			$table->string('title')->nullable()->comment('专访标题');
			$table->string('photo')->nullable()->comment('用户照片');
			$table->text('introduction')->nullable()->comment('作者简介');
			$table->text('official_introduction')->nullable()->comment('官方介绍');
			$table->integer('time')->nullable()->comment('专访时间');
			$table->boolean('type')->nullable()->default(0)->comment('作者专访为1新人堂为0');
			$table->string('name', 60)->nullable()->comment('作者真是姓名');
			$table->text('details')->nullable()->comment('专访详情');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('author');
	}

}
